﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ongoal.Quotation.Redis
{
    /// <summary>
    /// Redis连接配置
    /// </summary>
    [Serializable]
    public class RedisConfig
    {
        public string Name { get; set; }
        private string _Connectstr;
        public string Connectstr
        {
            get { return _Connectstr; }
            set
            {
                if (!string.IsNullOrEmpty(value) && value.ToLower().IndexOf(",poolsize=") == -1)
                {
                    _Connectstr = value + ",poolsize=8";
                }
                else
                {
                    _Connectstr = value;
                }
            }
        }
    }
}
